package com.sx.service;

import com.sx.pojo.Category;
import com.sx.pojo.Supplier;

import java.util.ArrayList;

public interface SupplierService {
    //查询所有供应商
    ArrayList<Supplier> getAllSupplier();
    //查询所有商品类别
    ArrayList<Category> getAllCategory();
    //判断供应商编号是否存在
    boolean checkIdExists(String id);
    //添加供应商
    boolean addSupplier(Supplier supplier, String PersonId, String PersonName, int flag, int type, String id);
    //删除供应商
    //boolean deleteSupplierById(String id);
    boolean deleteSupplierById(String PersonId, String PersonName, int flag, int type, String id);
    //根据id查询供应商
    Supplier getSupplierById(String id);
    //更新供应商
    boolean updateSupplier(Supplier supplier, String PersonId, String PersonName, int flag, int type, String id);
}
